﻿using BookStore.ShopStates;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BookStore.Shops
{
    public class CreateUpdateShopDto
    {
        /// <summary>
        /// 商品名称
        /// </summary>
        [Required]
        [StringLength(128)]
        public string ShopName { get; set; }
        /// <summary>
        /// 商品类型
        /// </summary>
        [Required]
        public int ShopType { get; set; }
        /// <summary>
        /// 商品品牌
        /// </summary>
        [Required]
        public int ShopBrand { get; set; }

        /// <summary>
        /// 商品描述
        /// </summary>
        [Required]
        [StringLength(128)]
        public string ShopDescription { get; set; }
        /// <summary>
        /// 商品图片Id
        /// </summary>
        [Required]
        public int ShopImg { get; set; }
        /// <summary>
        /// 商品原价
        /// </summary>
        [Required]
        public float ShopPrice { get; set; }
        /// <summary>
        /// 商品会员价
        /// </summary>
        [Required]
        public float ShopMemberprice { get; set; }
        /// <summary>
        /// 购买数量
        /// </summary>
        [Required]
        public int ShopNum { get; set; }
        /// <summary>
        /// 购买次数
        /// </summary>
        [Required]
        public int ShopNumber { get; set; }
        /// <summary>
        /// 商品库存
        /// </summary>
        [Required]
        public int ShopRepertory { get; set; }
        /// <summary>
        /// 商品状态
        /// </summary>
        [Required]
        public ShopState ShopState { get; set; }
    }
}
